package com.leyou.common.constants;

/**
 * 所有交换机，队列，routingKey定义类
 */
public abstract class MQConstants {
    public static final class Exchange{
        /**
         * 商品服务交换机名称
         */
        public static final String ITEM_EXCHANGE_NAME="ly.item.exchange";
        /**
         * 短信微服务交换机名称
         */
        public static final String SMS_EXCHANGE_NAME = "ly.sms.exchange";
    }

    public static final class RoutingKey{
        /**
         * 商品上架的routingKey
         */
        public static final String ITEM_UP_KEY = "item.up";
        /**
         * 商品下架的routingKey
         */
        public static final String ITEM_DOWN_KEY = "item.down";

        /**
         * 短信微服务的routingkey
         */
        public static final String VERIFY_CODE_KEY="sms.verify.code";
    }

    public static final class Queue{
        /**
         * 搜索服务，商品上架的队列
         */
        public static final String SEARCH_ITEM_UP = "search.item.up";
        /**
         * 搜索服务，商品下架的队列
         */
        public static final String SEARCH_ITEM_DOWN = "search.item.down.queue";
        /**
         * 页面静态化的服务，商品上架的队列
         */
        public static final String PAGE_ITEM_UP = "page.item.up";

        /**
         * 页面静态化服务，商品下架的队列
         */
        public static final String PAGE_ITEM_DOWN = "page.item.down.queue";

        /**
         * 短信微服务的队列
         */
        public static final String SMS_VERIFY_CODE_QUEUE="sms.verify.code.queue";
    }

}
